package com.admin.controller;


import com.admin.service.CodeCountyService;
import com.admin.utils.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 城市表 前端控制器
 * </p>
 *
 * @author szy
 * @since 2023-03-20
 */
@RestController
@RequestMapping("/api/codeCounty")
public class CodeCountyController {

    @Resource
    private CodeCountyService codeCountyService;

    @GetMapping("/list")
    public Result list(Integer code){
        return Result.ok(codeCountyService.findListByPro(code));
    }
}

